<?php

namespace app\model;

class OrderPayment extends OrderPaymentBase
{
    public function onBeforeInsert()
    {
        $this->code =  date('YmdHis') . mt_rand(1000, 9999);
        $this->verificationCode = mt_rand(100000, 999999);
    }
}
